Filter and print Json output